/**
 * 
 */
package cn.telling.productapprove.dao;

import java.math.BigDecimal;
import java.util.List;

import cn.telling.common.pager.PageVo;
import cn.telling.common.vo.LoginingVo;
import cn.telling.productapprove.vo.ConditionApproveVo;
import cn.telling.productapprove.vo.ProductApproveVo;
import cn.telling.productapprove.vo.ProductBidApproveVo;
import cn.telling.productapprove.vo.ShopProductVO;

/**
 * @Title: IProductApproveDao.java
 * @Package com.productapprove.dao
 * @Description: 商品审批处理数据访问接口
 * @author guohui
 * @date 2013-4-26 上午9:13:41
 * @version V1.0
 */
public interface IProductApproveDao {
    public List<ProductApproveVo> GetByPage(ConditionApproveVo condition, PageVo pageVo, LoginingVo loVo);

    public int GetTotalCount(ConditionApproveVo condition, LoginingVo loVo);

    public ProductApproveVo GetApproveInfoById(String approveId);

    public ProductApproveVo GetApproveInfoBySupplyAreaId(String supplyAreaId);

    public int UpdateSupplyArea(ProductApproveVo productApproveVo);

    public int UpdateApprove(ProductApproveVo productApproveVo);

    public List<ProductApproveVo> getSupplyAreaId(String shopProductIds);

    // public List<SupplyVo> getSupplyName();
    public int GetBidTotalCount(ConditionApproveVo condition);

    public List<ProductBidApproveVo> GetBidByPage(ConditionApproveVo condition, PageVo pageVo);

    public List<ProductApproveVo> GetBidApproveInfo(String productId, String areaId);

    public int UpdateBidApproveSucc(ProductApproveVo productApproveVo);

    public int UpdateBidApproveFail(ProductApproveVo productApproveVo);

    // public List<SupplyVo> getTySupplyName();
    // 拆分天音产品审核
    public int GetTotalCount(ConditionApproveVo condition, LoginingVo loVo, String Type);

    public List<ProductApproveVo> GetByPage(ConditionApproveVo condition, PageVo pageVo, LoginingVo loVo, String Type);

    // public List<SupplyVo> getFirmSupplyName();
    public List<ProductApproveVo> GetByPage4Firm(ConditionApproveVo condition, PageVo pageVo);

    public int GetTotalCount4Firm(ConditionApproveVo condition);

    public List<ProductApproveVo> GetApproveListById(String approveId);

    public int publichNumBySupply(BigDecimal supplyId);

    public BigDecimal findApproveId();
    public  int updateGiftsFapiao(String gifts,String isfapiao,String supplyAreaId);
    
    public int updateProductCountry(ShopProductVO vo,String type,String supplyType);
    
    public String queryProductCountry(String id);
    
    public ShopProductVO queryProductTempCountry(ShopProductVO vo);

}
